package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyDangerRecordLabourDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyDangerRecordLabour;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/7/21
 * @Description
 */
@Service
public class SafetyDangerRecordLabourService implements SafetyDangerRecordLabourDao {
    @Autowired
    private SafetyDangerRecordLabourDao safetyDangerRecordLabourDao;

    @Override
    public int insertSafetyDangerRecordLabour(Map map) {
        return safetyDangerRecordLabourDao.insertSafetyDangerRecordLabour(map);
    }

    @Override
    public int deleteSafetyDangerRecordLabour(Map map) {
        return safetyDangerRecordLabourDao.deleteSafetyDangerRecordLabour(map);
    }

    @Override
    public int updateSafetyDangerRecordLabour(Map map) {
        return safetyDangerRecordLabourDao.updateSafetyDangerRecordLabour(map);
    }

    @Override
    public List<SafetyDangerRecordLabour> findSafetyDangerRecordLabourByPage(Map map) {
        return safetyDangerRecordLabourDao.findSafetyDangerRecordLabourByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyDangerRecordLabourDao.Total(map);
    }

    @Override
    public List<SafetyDangerRecordLabour> findSafetyDangerRecordLabourByWorkerId(Map map) {
        return safetyDangerRecordLabourDao.findSafetyDangerRecordLabourByWorkerId(map);
    }

    @Override
    public long totalByWorkerId(Map map) {
        return safetyDangerRecordLabourDao.totalByWorkerId(map);
    }

    @Override
    public List<Map> findSafetyDangerRecordLabourAwarda(Map map) {
        return safetyDangerRecordLabourDao.findSafetyDangerRecordLabourAwarda(map);
    }
}
